Skip to content

Conversation

@shadowspawn
Copy link
Collaborator

I had a loose expression to accept all of123 and 4.5 and .678. More explicit and tidier using the OR operator to test for a number with OR without a decimal point.

The OR operator is lowest precedence, so \d+|\d*\.\d+ is same as (\d+)|(\d*\.\d+)

@shadowspawn shadowspawn added the pending release Merged into a branch for a future release, but not released yet label Sep 26, 2025
@shadowspawn shadowspawn merged commit ff1d2ce into tj:develop Sep 26, 2025
11 checks passed
@shadowspawn shadowspawn deleted the feature/better-negative-test branch October 18, 2025 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending release Merged into a branch for a future release, but not released yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants